<script type="text/javascript">
<!--//
function showHideFields($sel)
{
	if(document.getElementById){
		document.getElementById('mtblogid').style.display = ($sel=='mtdb') ? 'block': 'none';
		document.getElementById('wponly').style.display =  ($sel=='wp') ? 'block': 'none';
		document.getElementById('databased').style.display = ($sel=='wp' || $sel=='mtdb' || $sel=='b2')? 'block':'none';
	}
}
//-->
</script>

<div id="import_container" class="txp-container txp-edit"><form id="import" action="index.php" method="post"><table cellpadding="3" cellspacing="0" border="0" id="edit" align="center">
<tr>	<td align="left" valign="top" colspan="2"><h3>Import content from other publishing tools</h3></td>
</tr><tr class="import-from"><td class="noline" style="text-align: right; vertical-align: middle;"><label for="from">Import from <a target="_blank" href="http://rpc.textpattern.com/help/?item=import&#38;language=en-us" onclick="popWin(this.href); return false;" class="pophelp">?</a></label></td>	<td class="from"><select name="import_tool" onchange="showHideFields(this.value);">	<option value=""></option>
	<option value="mt">Movable Type (File)</option>
	<option value="mtdb">Movable Type (MySQL DB)</option>
	<option value="blogger">Blogger</option>
	<option value="b2">b2</option>
	<option value="wp">WordPress</option>
</select></td>
</tr><tr class="import-section"><td class="noline" style="text-align: right; vertical-align: middle;"><label for="section">Section to import into <a target="_blank" href="http://rpc.textpattern.com/help/?item=import_section&#38;language=en-us" onclick="popWin(this.href); return false;" class="pophelp">?</a></label></td>	<td class="section"><select name="Section" class="list">
	<option value="" selected="selected"></option>
	<option value="about">about</option>
	<option value="articles">articles</option>
</select></td>
</tr><tr class="import-status"><td class="noline" style="text-align: right; vertical-align: middle;"><label for="status">Default article status <a target="_blank" href="http://rpc.textpattern.com/help/?item=import_status&#38;language=en-us" onclick="popWin(this.href); return false;" class="pophelp">?</a></label></td>	<td class="status"><select name="type">
	<option value="4">Live</option>
	<option value="1">Draft</option>
	<option value="2">Hidden</option>
	<option value="3">Pending</option>
</select>
</td>
</tr><tr class="import-comment"><td class="noline" style="text-align: right; vertical-align: middle;"><label for="comment-invite">Default comments invite <a target="_blank" href="http://rpc.textpattern.com/help/?item=import_invite&#38;language=en-us" onclick="popWin(this.href); return false;" class="pophelp">?</a></label></td>	<td class="comment-invite"><input type="text" value="Comments" name="comments_invite" class="edit" /></td>
</tr><tr><td colspan="2"><table id="databased" style="display: none; border: none;"><tr>	<td align="left" valign="top" colspan="2"><h3>Database Data</h3></td>
</tr><tr class="import-database"><td class="noline" style="text-align: right; vertical-align: middle;"><label for="database">Database name <a target="_blank" href="http://rpc.textpattern.com/help/?item=import_database&#38;language=en-us" onclick="popWin(this.href); return false;" class="pophelp">?</a></label></td>	<td class="database"><input type="text" value="" name="importdb" class="edit" /></td>
</tr><tr class="import-login"><td class="noline" style="text-align: right; vertical-align: middle;"><label for="login">Mysql user <a target="_blank" href="http://rpc.textpattern.com/help/?item=import_login&#38;language=en-us" onclick="popWin(this.href); return false;" class="pophelp">?</a></label></td>	<td class="login"><input type="text" value="" name="importdblogin" class="edit" /></td>
</tr><tr class="import-password"><td class="noline" style="text-align: right; vertical-align: middle;"><label for="password">Mysql password <a target="_blank" href="http://rpc.textpattern.com/help/?item=import_password&#38;language=en-us" onclick="popWin(this.href); return false;" class="pophelp">?</a></label></td>	<td class="password"><input type="text" value="" name="importdbpass" class="edit" /></td>
</tr><tr class="import-host"><td class="noline" style="text-align: right; vertical-align: middle;"><label for="host">Mysql host <a target="_blank" href="http://rpc.textpattern.com/help/?item=import_host&#38;language=en-us" onclick="popWin(this.href); return false;" class="pophelp">?</a></label></td>	<td class="host"><input type="text" value="" name="importdbhost" class="edit" /></td>
</tr></table></td></tr><tr><td colspan="2"><table id="mtblogid" style="display: none;  border: none;"><tr class="import-blog-id"><td class="noline" style="text-align: right; vertical-align: middle;"><label for="blog-id">Weblog ID <a target="_blank" href="http://rpc.textpattern.com/help/?item=import_blogid&#38;language=en-us" onclick="popWin(this.href); return false;" class="pophelp">?</a></label></td>	<td class="blog-id"><input type="text" value="" name="blog_id" class="edit" /></td>
</tr></table></td></tr><tr><td colspan="2"><table id="wponly" style="display: none;  border: none;"><tr class="import-wp-prefix"><td class="noline" style="text-align: right; vertical-align: middle;"><label for="wp-prefix">Tables prefix (if any) <a target="_blank" href="http://rpc.textpattern.com/help/?item=import_wpprefix&#38;language=en-us" onclick="popWin(this.href); return false;" class="pophelp">?</a></label></td>	<td class="wp-prefix"><input type="text" value="wp_" name="wpdbprefix" class="edit" /></td>
</tr></table></td></tr>
</table>
<p style="text-align:center"><input type="submit" value="Continue" name="choose" class="publish" /></p><input type="hidden" value="start_import" name="step" /><input type="hidden" value="import" name="event" /></form></div>
